onEvent('recipes', (event) => {
    const xhzhrecipes = [
        {
            input: { block: 'astralsorcery:black_marble_raw' },
            output: { block: 'evilcraft:dark_block' },
            starlight: 30,
        }

    ];



    xhzhrecipes.forEach((recipe) => {
        recipe.type = 'astralsorcery:block_transmutation';
        event.custom(recipe);
    });

    const infuser_recipes = [
        {
            input: 'psi:psimetal_block',
            output: 'quark:yellow_crystal',
            count: 1
        },
        {
            input: 'pipez:improved_upgrade',
            output: 'pipez:advanced_upgrade',
            count: 1
        },
        {
            input: 'astralsorcery:starmetal',
            output: 'evilcraft:promise_acceptor_iron',
            count: 1,
        },
        {
            input: 'thermal:obsidian_glass',
            output: 'astralsorcery:glass_lens',
            count: 1,
        },
        {
            input : 'elementalcraft:burnt_glass',
            output: 'astralsorcery:glass_lens',
            count: 1,
        },
        {
            input : 'elementalcraft:drenched_iron_block',
            output : 'evilcraft:promise_acceptor_gold',
            count : 1,
        },
        {
            input : 'mob_grinding_utils:saw_upgrade_sharpness',
            output : 'mob_grinding_utils:null_sword', 
            count : 1,
        }
    ];
    infuser_recipes.forEach((recipe) => {
        event.custom({
            "type": "astralsorcery:infuser",
            "fluidInput": "astralsorcery:liquid_starlight",
            "input": { "item": recipe.input },
            "output": { "item": recipe.output, "count": recipe.count },
            "consumptionChance": 0.2,
            "duration": 60,
            "consumeMultipleFluids": true,
            "acceptChaliceInput": true,
            "copyNBTToOutputs": false
        });
    });

    /*
    "astralsorcery:infuser/ancient_debris":{"recipe":{
        "type":"astralsorcery:infuser",
        "fluidInput":"astralsorcery:liquid_starlight",
        "input":{"item":"minecraft:ancient_debris"},
        "output":{"item":"minecraft:netherite_scrap","count":2},
        "consumptionChance":0.2,
        "duration":120,
        "consumeMultipleFluids":true,
        "acceptChaliceInput":true,
        "copyNBTToOutputs":false
    }},
    */



    const altar_recipes = [
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "___D_",
                "__DAD",
                "__BD_",
                "_B___",
                "C____"],
            key: {
                "A": { "item": 'torchmaster:frozen_pearl' },
                "B": { "item": 'immersiveengineering:stick_treated' },
                "C": { "item": 'astralsorcery:glass_lens' },
                "D": { "item": 'kubejs:stabilizing_unit' },
            },
            output: [{ "item": 'psi:cad_assembly_iron', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "BA_AB",
                "AABAA",
                "_CCC_",
                "EDBDE",
                "B___B"],
            key: {
                "A": { "item": 'immersiveengineering:slab_treated_wood_vertical' },
                "B": { "item": 'immersiveengineering:treated_wood_horizontal' },
                "C": { "item": 'kubejs:party_1_ingot' },
                "D": { "item": 'evilcraft:dark_power_gem_block' },
                "E": { "item": 'kubejs:infusion_ingot' }
            },
            output: [{ "item": 'psi:cad_assembler', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "B___B",
                "__B__",
                "_ACA_",
                "__B__",
                "B___B"],
            key: {
                "A": { "item": 'quark:diamond_heart' },
                "B": { "item": 'tconstruct:clear_glass' },
                "C": { "item": 'kubejs:party_1_ingot' },
            },
            output: [{ "item": 'astralsorcery:glass_lens', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_____",
                "_BAB_",
                "_ACA_",
                "_BAB_",
                "_____"],
            key: {
                "A": { "item": 'minecraft:ender_eye' },
                "B": { "item": 'torchmaster:frozen_pearl' },
                "C": { "item": 'evilcraft:blood_orb_filled' },
            },
            output: [{ "item": 'evilcraft:piercing_vengeance_focus', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_B_B_",
                "BDCDB",
                "_CAC_",
                "BDCDB",
                "_B_B_"],
            key: {
                "A": { "item": 'psi:psidust_block' },
                "B": { "item": 'kubejs:infusion_ingot' },
                "C": { "item": 'evilcraft:burning_gem_stone' },
                "D": { "item": 'torchmaster:frozen_pearl' },
            },
            output: [{ "item": 'kubejs:summon_blaze', "count": 2 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "ED_DE",
                "DBABD",
                "_ACA_",
                "DBABD",
                "ED_DE"],
            key: {
                "A": { "item": 'kubejs:party_1_ingot' },
                "B": { "item": 'astralsorcery:starmetal_ingot' },
                "C": { "item": 'kubejs:paper_2' },
                "D": { "item": 'evilcraft:dark_brick' },
                "E": { "tag": 'forge:storage_blocks/brass' }
            },
            output: [{ "item": 'kubejs:starmetal_frame', "count": 4 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "ED_DE",
                "DBABD",
                "_ACA_",
                "DBABD",
                "ED_DE"],
            key: {
                "A": { "item": 'kubejs:party_1_ingot' },
                "B": { "item": 'astralsorcery:starmetal_ingot' },
                "C": { "item": 'kubejs:party_2_ingot' },
                "D": { "item": 'evilcraft:dark_brick' },
                "E": { "tag": 'forge:storage_blocks/brass' }
            },
            output: [{ "item": 'kubejs:starmetal_frame', "count": 4 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_B_B_",
                "BDCDB",
                "_CAC_",
                "BDCDB",
                "_B_B_"],
            key: {
                "A": { "item": 'psi:psidust_block' },
                "B": { "item": 'kubejs:infusion_ingot' },
                "C": { "item": 'minecraft:packed_ice'},
                "D": { "item": 'torchmaster:frozen_pearl' },
            },
            output: [{ "item": 'kubejs:summon_blizz', "count": 2 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_B_B_",
                "BDCDB",
                "_CAC_",
                "BDCDB",
                "_B_B_"],
            key: {
                "A": { "item": 'psi:psidust_block' },
                "B": { "item": 'kubejs:infusion_ingot' },
                "C": { "tag": 'forge:dusts/saltpeter'},
                "D": { "item": 'torchmaster:frozen_pearl' },
            },
            output: [{ "item": 'kubejs:summon_blitz', "count": 2 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_B_B_",
                "BDCDB",
                "_CAC_",
                "BDCDB",
                "_B_B_"],
            key: {
                "A": { "item": 'psi:psidust_block' },
                "B": { "item": 'kubejs:infusion_ingot' },
                "C": { "item": 'minecraft:crying_obsidian'},
                "D": { "item": 'torchmaster:frozen_pearl' },
            },
            output: [{ "item": 'kubejs:summon_basalz', "count": 2 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "_____",
                "_____",
                "_ABC_",
                "_____",
                "_____"],
            key: {
                "A": { "item": 'create:polished_rose_quartz' },
                "B": { "item": 'elementalcraft:swift_alloy_ingot' },
                "C": { "item": 'projectred-core:infused_silicon'},
            },
            output: [{ "item": 'refinedstorage:quartz_enriched_iron', "count": 16 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "AA_AA",
                "AADAA",
                "_ECE_",
                "_ABA_",
                "_A_A_"],
            key: {
                "A": { "item": 'botania:livingrock' },
                "B": { "item": 'botania:terrasteel_block' },
                "C": { "item": 'botania:mana_detector'},
                "D": { "item": 'forbidden_arcanus:arcane_crystal_obelisk' },
                "E": { "item": 'kubejs:magicinfused_alumicube'},
            },
            output: [{ "item": 'botania:runic_altar', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 200,
            pattern: [
                "BA___",
                "ACA__",
                "_AB__",
                "_D___",
                "_D___"],
            key: {
                "A": { "item": 'emendatusenigmatica:electrum_plate' },
                "B": { "item": 'astralsorcery:glass_lens' },
                "C": { "item": 'psi:cad_core_overclocked'},
                "D": { "item": 'psi:cad_assembly_iron' },
            },
            output: [{ "item": 'astralsorcery:telescope', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 2000,
            pattern: [
                "AB_BA",
                "BECEB",
                "_CDC_",
                "BECEB",
                "AB_BA"],
            key: {
                "A": { "item":'astralsorcery:resonating_gem' },
                "B": { "item": 'astralsorcery:marble_runed' },
                "C": { "item":'kubejs:party_2_ingot'},
                "D": { "item": 'psi:psimetal_block' },
                "E": { "item": 'astralsorcery:spectral_relay' },
            },
            output: [{ "item": 'astralsorcery:altar_radiance', "count": 1 }],
            count: 1,
        },
        {
            altar_type: 2,
            duration: 40,
            starlight: 2000,
            pattern: [
                "AB_AB",
                "BECEB",
                "_CDC_",
                "BECEB",
                "AB_AB"],
            key: {
                "A": { "item":'kubejs:stagemachinery_1' },
                "B": { "item": 'quark:framed_glass' },
                "C": { "item":'kubejs:party_2_ingot'},
                "D": { "item": 'rftoolsbase:machine_frame'},
                "E": { "item": 'kubejs:fus' },
            },
            output: [{ "item": 'nr2_bd:mobsslaughtering_machine', "count": 1 }],
            count: 1,
        }
    ];

    altar_recipes.forEach((recipes) => {
        event.custom({
            "type": "astralsorcery:altar",
            "altar_type": recipes.altar_type,
            "duration": recipes.duration,
            "starlight": recipes.starlight,
            "pattern": recipes.pattern,
            "key": recipes.key,
            "output": recipes.output
        });
    });




});

//

